fix: avoid spurious blank line on alr exec when ANSI enabled#2009
Merged
mosteo merged 4 commits intoalire-project:masterfrom Oct 3, 2025
Merged
fix: avoid spurious blank line on alr exec when ANSI enabled#2009mosteo merged 4 commits intoalire-project:masterfrom
alr exec when ANSI enabled#2009mosteo merged 4 commits intoalire-project:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR works around a sporadic spurious blank line printed at program termination by performing explicit cleanup and exiting early from the main procedure.
- Add explicit temporary directory cleanup and early process exit in alr-main.adb.
- Minor cleanup in temp file finalization and whitespace.
- Update VS Code launch configuration to reproduce/debug the issue.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/alr/alr-main.adb | Adds Delete_Temporaries and an explicit Alire.OS_Lib.Bailout(0) to avoid finalization that emits a stray newline. |
| src/alr/alr-utils-temp_file.adb | Removes a superfluous null statement after Delete_File. |
| src/alr/alr-commands-exec.adb | Trims an extra blank line (whitespace-only change). |
| .vscode/launch.json | Adjusts the debug configuration to run alr exec and tweak GDB settings. |
alr exec when ANSI enabled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2004
PR creation checklist
doc/user-changes.mdhas been updated, if there are user-visible changes.doc/catalog-format-spec.mdhas been updated, if applicable.BREAKING.mdhas been updated for major changes inalr, minor/major in catalog format.